package xyz.zhouxf.rpc;

import xyz.zhouxf.rpc.transport.RpcClient;
import xyz.zhouxf.rpc.transport.RpcProxy;
import xyz.zhouxf.rpc.transport.netty.client.NettyClient;

/**
 * @author zhouxf
 * @date 2022/10/6
 */
public class TestClient {
    public static void main(String[] args) {

        RpcClient rpcClient = new NettyClient();

        SayHello sayHello = new RpcProxy(rpcClient).getProxy(SayHello.class);

        String s = sayHello.hello("zhouxf");

        System.out.println(s);

    }
}
